package shiyantian;

import java.awt.Color;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class Others {

	public static void main(String[] args) {
		
		System.out.println("IBM".hashCode());
		System.out.println("ibm".hashCode());

		System.out.println('林');
		System.out.println('可');
		System.out.println((int)'林');
		System.out.println((int)'可');
		System.out.println('林' + '可');

		System.out.println(null instanceof Object);

		System.out.println(new Date(1301387334000L).toString());
		System.out.println(new Date(1301387334000L).toGMTString());
		System.out.println(new Date(1301387334000L).toLocaleString());

		System.out.println(1301387334/(3600));
		System.out.println((1301387334/(3600) + 8) % 24);
		
		SimpleDateFormat sdf_local = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		SimpleDateFormat sdf_gmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.ENGLISH);
		try {
			System.out.println(sdf_local.format(new Date()));
			System.out.println(sdf_local.parse("1970-01-01 00:00:00").getTime()/1000);
			System.out.println(sdf_local.parse("2011-03-29 16:28:54").getTime()/1000);
			System.out.println(sdf_gmt.parse("1970-01-01 00:00:00").getTime()/1000);
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		System.out.println(Color.getColor("233,5,62"));
		
		System.out.println(System.getProperty("user.home"));
		System.out.println(System.getProperty("java.io.tmpdir"));
		
	}
}
